
let set_state=(state, action) => {
  const { keys } = Object
  var new_state = { ...state }
  for (var key of keys(action.payload)) {
    new_state[key] = action.payload[key]
  }
  return new_state;
}

export default {
  namespace: 'global',
  state: {
      nav_index:0,
  },
  effects: {
    
  },
  reducers: {
     set_nav_index(state, action) {
       return set_state(state, action);
     },
    
  },
  
}